﻿#include <QCoreApplication>

#include "televation.h"
#include "tvclosecommand.h"
#include "tvopencommand.h"
#include "controller.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Televation* tv = new Televation();

    TVOpenCommand* open = new TVOpenCommand(tv);
    TVCloseCommand* close = new TVCloseCommand(tv);

    Controller* controller = new Controller();
    controller->setOpenCommand(open);
    controller->setCloseCommand(close);

    controller->open();
    controller->close();

    return a.exec();
}
